package cn.lg.soar.common.enums;

import cn.lg.soar.common.annotations.DictDefine;
import cn.lg.soar.common.data.dict.IDict;
import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * 终端类型
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@DictDefine(name = "设备类型")
public enum DeviceTypeEnum implements IDict<Integer>, IEnum<Integer> {

    computer("电脑端", 0),
    mobile("移动端", 1),
    tablet("平板端", 2),
    gameConsole("游戏机", 3),
    dmr("数字媒体接收器", 4),
    wearable("可穿戴设备", 5),
    unknown("未知", 6)
    ;
    DeviceTypeEnum(String label, int value){
        this.label = label;
        this.value = value;
    }

    private final String label;
    private final int value;
    @Override
    public Integer getValue() {
        return this.value;
    }
    @Override
    public String getLabel() {
        return this.label;
    }

}
